package org.example.basisobject;

public class MyClass implements Cloneable {
    private int myField;

    public MyClass(int myField) {
        this.myField = myField;
    }

    public int getMyField() {
        return myField;
    }

    public void setMyField(int myField) {
        this.myField = myField;
    }

    // 重写clone方法
    @Override
    protected MyClass clone() throws CloneNotSupportedException {
        return (MyClass) super.clone();
    }
}
